%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>新增T_stats</title>
</head>
<body>
<div class="pd-20">
	<form action="%=path%>/backstage/t_stats-add" method="post" class="form form-horizontal" id="form-t_stats-add">
		<input type="hidden" id="id" name="id" value='${t_stats.stats_id}' />
        
        <div class="row cl">
			<label class="form-label col-2">商铺标号：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.shop_id}" placeholder="" id="" name="shop_id" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">配送员编号：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.shipper_id}" placeholder="" id="" name="shipper_id" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">订单数：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.order_count}" placeholder="" id="" name="order_count" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">订单总金额：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.orders_money}" placeholder="" id="" name="orders_money" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">年份：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.year}" placeholder="" id="" name="year" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">月份：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.month}" placeholder="" id="" name="month" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">第几周：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.week}" placeholder="" id="" name="week" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">日：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.day}" placeholder="" id="" name="day" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">准时送达订单数：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.order_ontime_count}" placeholder="" id="" name="order_ontime_count" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">超时送达订单数：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.order_overtime_count}" placeholder="" id="" name="order_overtime_count" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2">提前送达订单数：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_stats.order_aheadtime_count}" placeholder="" id="" name="order_aheadtime_count" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        
		<div class="row cl">
			<div class="col-10 col-offset-2">
				<button onClick="t_stats_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存并提交</button>
				<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>
</div>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="lib/webuploader/0.1.5/webuploader.min.js"></script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript">

function t_stats_save_submit(){
	$("#form-t_stats-add").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(form){
			var index = parent.layer.getFrameIndex(window.name);
			parent.$('.btn-refresh').click();
			parent.layer.close(index);	
		}
	});
}

</script>
</body>
</html>

